package com.kfm.dao;

import com.kfm.model.Account;
import com.kfm.util.DBUtil;

public class AccountDao {

    private DBUtil dbUtil = new DBUtil();

    public Account queryAccountByUsernameAndPass(Account account){
        String sql = "select * from account where username = ? and pass = ?";

        return dbUtil.queryOne(sql, Account.class, account.getUsername(), account.getPass());
    }
}
